#include "channel_service.hpp"
#include "channel_server.hpp"

namespace fasys{ namespace service{ namespace channel{

channel_service::~channel_service()
{
  delete _server;
}

channel_service::channel_service()
  : _server(new channel_server)
{
}

void channel_service::start(fas::mux::imux<>* mux, const server_config& conf)
{
  _server->stop();
  _server->set_mux(mux);
  _server->set_nonblock(true);
  _server->start("127.0.0.1", 12345);
}

void channel_service::stop()
{
}

}}}
